<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"/var/www/html/CRM/public/../application/admin/view/design/design_board.html";i:1541148808;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目开发部</title>
<link rel="stylesheet" type="text/css" href="/admin/css/css.css" />
<script type="text/javascript" src="/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/admin/js/layer/layer.js"></script>
<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<style>
.buttone{
		display: inline-block;
		padding: 1% 1.5%;
		color: white;
		background: #47a4e1;
		border: none;
		border-radius: 4px;
	}
	td{
		padding:10px 0;
	}
</style>
<body>
	<div id="pageAll" style="margin:0 auto;">
		<div class="pageTop">
			<div class="page">
				<img src="/admin/img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">项目开发部</a>&nbsp;-</span>&nbsp;开发部
			</div>
		</div>

		<div class="page">
			<!-- banner页面样式 -->
			<div class="connoisseur">
				</div>
				<!-- banner 表格 显示 -->
				<div class="conShow">
					<table border="1" cellspacing="0" cellpadding="0">
						<tr>
							<td width="66px" class="tdColor tdC">序号</td>
							<td width="130px" class="tdColor">项目组名称</td>
							<td width="130px" class="tdColor">前端带课讲师</td>
							<td width="130px" class="tdColor">PHP带课讲师</td>
							<td width="130px" class="tdColor">开组时间</td>
							<td width="130px" class="tdColor">是否结业</td>
							<td width="130px" class="tdColor">操作</td>
						</tr>
						<?php foreach($select_product as $k=>$v): ?>
						<tr>
							<td><?php echo $k+1; ?></td>
							<td><?php echo $v['pro_name']; ?></td>
							<td><?php echo $v['pro_teacher']; ?></td>
							<td><?php echo $v['pro_assit_teacher']; ?></td>
							<td><?php echo $v['pro_createtime']; ?></td>
							<td>
								<?php if($v['pro_finish_sn']=="0"): ?>
								<button value="<?php echo $v['pro_id']; ?>" id="btn" href="javascript:;" title="点击切换状态" style="color: #999;border:none;background:none" >否</button>
								<?php else: ?>
								<button value="<?php echo $v['pro_id']; ?>"  href="javascript:;" title="点击切换状态" style="color: green;border:none;background:none;outline: none;"    href="javascript:;">是</button>
								<?php endif; ?>
							</td>
							<td>
							<a href="<?php echo url('admin/open/student',['job_group_id' => $v['pro_id']]); ?>"><button class="buttone" style="position:relative; z-index: -1;outline: none;">查看详情</button></a>
						</tr>
						<?php endforeach; ?>
					</table>
					<style>
						.pagination>li{
								float: left;
								text-align: center;
								border-radius: 5px;
							}
							.pagination>li:hover{
								background-color: #47a4e1;
							}
							.pagination>li:hover>span{
								color: white;
							}
							.pagination>li>a{
								display: inline-block;
								width: 66px;
								line-height: 2rem;
								border-radius: 5px;
								border: 1px solid #CCCCCC;
							}
							.pagination>li>span{
								display: inline-block;
								width: 66px;
								line-height: 2rem;
								color: #47a4e1;
								font-weight: bold;
								font-size: 18px;
							}
							.pagination>li.disabled{
								border-radius: 5px;
								border: 1px solid #CCCCCC;
							}
							.pagination{
								width:auto;
								height: 100%;
								margin: 0 auto;
							}
					</style>
					<div class="paging" style="margin-top: 20px; height: 2rem;">
					<?php echo $page; ?>
					</div>
				</div>
				<!-- banner 表格 显示 end-->
			</div>
			<!-- banner页面样式end -->
		</div>
		<script>
						$("#btn").click(function(){
							var pro_id = $(this).val()
							layer.confirm('请问是否对该组进行结业操作？', {icon: 7, title:'提示'}, function(){
								$.post("<?php echo url('admin/design/finish'); ?>",{'pro_id':pro_id},function(data){
									if(data == 1){
										layer.msg('修改成功', {icon: 6})
										
										on()
									}else{
										layer.msg('修改失败', {icon: 5});
									}
								})
							});
						})
		</script>
		<script>
			function on() {
				setInterval(function(){ window.location.href = "<?php echo url('admin/design/design'); ?>" }, 2000);
			}
		</script>

	<!-- 删除弹出框 -->
	<div class="banDel">
		<div class="delete">
			<div class="close">
				<a><img src="/admin/img/shanchu.png" /></a>
			</div>
			<p class="delP1">你确定要删除此条记录吗？</p>
			<p class="delP2">
				<a href="#" class="ok yes">确定</a><a class="ok no">取消</a>
			</p>
		</div>
	</div>
	<!-- 删除弹出框  end-->
</body>

<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</html>